package com.demo14;

public class GenericDemo1 {
    public static void main(String[] args) {
        //函数泛型的实现
        SetTest setTest = new SetTest();

        setTest.add("hello");
        setTest.add(100);
        setTest.add(true);

        System.out.println(setTest.getHashSet());


        System.out.println("--------------------");

        Cat<String> cat = new Cat<>();

        cat.eat("猫咪爱吃鱼");

    }
}
